package com.itheima.day04Dome01;

import java.util.Scanner;

public class D01 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入您的文件：");
        String next = scanner.next();
        System.out.println(next.indexOf("."));
        System.out.println(next.endsWith(".java"));

    }

}
